import request from '@/utils/request'

// 查询招聘人员列表
export function listScreening(query) {
  return request({
    url: '/system/user/manage/screening/list',
    method: 'get',
    params: query
  })
}

// 查询招聘人员详细
export function getScreening(userId) {
  return request({
    url: '/system/user/manage/screening/' + userId,
    method: 'get'
  })
}

// 新增招聘人员
export function addScreening(data) {
  return request({
    url: '/system/user',
    method: 'post',
    data: data
  })
}

// 修改招聘人员
export function updateScreening(data) {
  return request({
    url: '/system/user',
    method: 'put',
    data: data
  })
}

// 删除招聘人员
export function delScreening(userId) {
  return request({
    url: '/system/user/manage/screening/' + userId,
    method: 'delete'
  })
}
